/*
 * @Author: 刘润泽
 * @Date: 2022-11-08 18:34:08
 * @LastEditors: 刘润泽
 * @LastEditTime: 2023-02-26 22:29:56
 * @Description: 
 */
package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.BloodDispenseStates;
import server.business.service.BloodDispenseStatesService;
import server.business.utils.results.lrz.Result;

import java.util.List;

/**
 * @author simba@onlying.cn
 * @date 2022/11/7 17:05
 */
@RestController
@RequestMapping("/bloodDispenseState")
public class BloodDispenseStateController {

    @Autowired
    BloodDispenseStatesService bloodDispenseStateService;

    @GetMapping(value = "/normal/getState")
    @ResponseBody
    public Result getState() {
        List<BloodDispenseStates> bloodDispenseStateList = bloodDispenseStateService.list();
        return Result.success(bloodDispenseStateList);
    }

    /**
     * lrz
     * 
     * @return
     */
    @GetMapping(value = "/normal/getName")
    @ResponseBody
    public Result getName() {
        List<BloodDispenseStates> bloodDispenseStateList = bloodDispenseStateService.list();
        return server.business.utils.results.lrz.Result.success(bloodDispenseStateList);
    }
}
